﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlSelectItemRef : SqlSourceReference {
		private readonly SelectItem _selectItem;
		public SelectItem SelectItem {
			get {
				return _selectItem;
			}
		}
		public SqlSelectItemRef(SelectItem selectItem, SelectRef sourceRef): base (sourceRef) {
			if (selectItem == null) {
				throw new ArgumentNullException("selectItem");
			}
			_selectItem = selectItem;
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.SelectItemRef;
			}
		}
	}
}
